package net.maku.testaaa.convert;

import net.maku.testaaa.entity.TestEntity;
import net.maku.testaaa.vo.TestVO;
import net.maku.testaaa.vo.TestExcelVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 66666
 *
 * @author MAKU babamu@126.com
 * <a href="https://maku.net">MAKU</a>
 */
@Mapper
public interface TestConvert {
    TestConvert INSTANCE = Mappers.getMapper(TestConvert.class);

    TestEntity convert(TestVO vo);

    TestVO convert(TestEntity entity);

    List<TestVO> convertList(List<TestEntity> list);

    List<TestEntity> convertList2(List<TestVO> list);

    List<TestExcelVO> convertExcelList(List<TestEntity> list);

    List<TestEntity> convertExcelList2(List<TestExcelVO> list);
}